package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "gong_", schema = "boot", catalog = "")
public class Gong {//权限功能表
    private int gongId2;//功能编号
    private Integer jueId;//角色编号
    private String gongName2;//功能名称
    private String gongLu2;//功能访问路径
    private String gongIcon2;//功能组名称
    private String gongRank2;//功能所属的权限组名称

    private Sort sort;//功能组对象

    @ManyToOne
    @JoinColumn(name = "sort_id",referencedColumnName = "sort_id")
    public Sort getSort() {
        return sort;
    }

    public void setSort(Sort sort) {
        this.sort = sort;
    }

    @Id
    @Column(name = "gong_id2", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getGongId2() {
        return gongId2;
    }

    public void setGongId2(int gongId2) {
        this.gongId2 = gongId2;
    }

    @Basic
    @Column(name = "jue_id", nullable = true)
    public Integer getJueId() {
        return jueId;
    }

    public void setJueId(Integer jueId) {
        this.jueId = jueId;
    }


    @Basic
    @Column(name = "gong_name2", nullable = true, length = 200)
    public String getGongName2() {
        return gongName2;
    }

    public void setGongName2(String gongName2) {
        this.gongName2 = gongName2;
    }

    @Basic
    @Column(name = "gong_lu2", nullable = true, length = 200)
    public String getGongLu2() {
        return gongLu2;
    }

    public void setGongLu2(String gongLu2) {
        this.gongLu2 = gongLu2;
    }

    @Basic
    @Column(name = "gong_icon2", nullable = true, length = 200)
    public String getGongIcon2() {
        return gongIcon2;
    }

    public void setGongIcon2(String gongIcon2) {
        this.gongIcon2 = gongIcon2;
    }

    @Basic
    @Column(name = "gong_rank2", nullable = true)
    public String getGongRank2() {
        return gongRank2;
    }

    public void setGongRank2(String gongRank2) {
        this.gongRank2 = gongRank2;
    }

}
